﻿@model LX.Web.Mvc.Combin<List<S4Store.Domain.Store>,S4Store.Domain.Administrator>
@{
    ViewBag.Title = "Modify";
    Layout = null;
}
<form class="pageForm addpage" action="@Url.Action("ModifyBack")" method="post">
<div style=" height:100%; width:100%; overflow:hidden" class="verticalSplitContainer">
		<div class="pageFormContent" style="overflow: auto;" ratio="*">
            <table style="width:100%">
                <tr>
                    <td width="10%">用户名：</td>
                    <td width="40%"><input type="text" value="@Model.Data2.UserName" size="30" name="UserName" class="textInput" /></td>
                    <td width="10%">密码：</td>
                    <td width="40%"><input type="text" value="******" size="30" name="Password" class="textInput" /></td>
                </tr>
                <tr>
                    <td width="10%">姓名：</td>
                    <td width="40%"><input type="text" value="@Model.Data2.Name" size="30" name="Name" class="textInput" /></td>
                    <td width="10%">职位：</td>
                    <td width="40%">
                    <select name="PositionType">
                        @*<option value="0" @if(Model.Data2.PositionType==0){<text>selected="selected"</text>}>总经理</option>*@
                        <option value="1" @if(Model.Data2.PositionType==1){<text>selected="selected"</text>}>销售数据录入员</option>
                        <option value="8" @if(Model.Data2.PositionType==8){<text>selected="selected"</text>}>营销数据录入员</option>
                        <option value="9" @if(Model.Data2.PositionType==9){<text>selected="selected"</text>}>财务数据录入员</option>
                        <option value="10" @if(Model.Data2.PositionType==10){<text>selected="selected"</text>}>售后数据录入员</option>
                        <option value="2" @if(Model.Data2.PositionType==2){<text>selected="selected"</text>}>销售经理</option>
                        <option value="3" @if(Model.Data2.PositionType==3){<text>selected="selected"</text>}>售后经理</option>
                        <option value="4" @if(Model.Data2.PositionType==4){<text>selected="selected"</text>}>市场经理</option>
                        <option value="5" @if(Model.Data2.PositionType==5){<text>selected="selected"</text>}>门店总经理</option>
                        <option value="12" @if(Model.Data2.PositionType==12){<text>selected="selected"</text>}>销售辅导老师</option>
                        <option value="11" @if(Model.Data2.PositionType==11){<text>selected="selected"</text>}>经销商辅导老师</option>
                        <option value="-1" @if(Model.Data2.PositionType==-1){<text>selected="selected"</text>}>骐翔管理员</option>
                    </select>
                    </td>
                </tr>
                <tr>
                    
                    <td width="10%">所属店：</td>
                    <td width="40%">
                        <select name="StoreId">
                            <option value=""></option>
                            @foreach (var store in Model.Data1)
                            {
                                <option value="@store.Id"  @if (Model.Data2.StoreId != null && Model.Data2.StoreId == store.Id)
                                                           {<text>selected="selected"</text>}>@store.Name</option>
                            }
                        </select>
                    </td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
			<input type="hidden" name="Id" value="@Model.Data2.Id" />
		</div>
		<div class="formBar" ratio="#30">
			<ul>
                <li><div class="simplebutton"><div class="r"><button type="button" class="submit">保存</button></div></div></li>	
			</ul>
		</div>
</div>
</form>
